package pers.ree.demo.base;

public class ObjectDemo {

    private static String staticPrivateStr = "staticPrivateStr"; // 给StaticDemo使用
    static String staticStr = "staticStr"; // 给StaticDemo使用
    public static String staticPublicStr = "staticPublicStr"; // 给StaticDemo使用

    public void test(Object obj) {
        System.out.println(obj.toString());
    }

    public String toString() {
        System.out.println("ObjectDemo toString!");
        return "";
    }

    public static void main(String[] args) {
        Object objectDemo = new ObjectDemo();

        objectDemo.toString();
    }
}
